<script setup lang="ts">
import { storeToRefs } from "pinia";
import { useHomeStore } from "@/store/home";

const homeStore = useHomeStore();
const { counter } = storeToRefs(homeStore);

function addCounter() {
    homeStore.increment();
}
</script>

<template>
    <div>HowUsePinia page. counter => {{ counter }}</div>
    <button @click="addCounter">+</button>
</template>

<style scoped lang="scss"></style>
